<template>
  <div class="recommend">
    <div v-for="item in recommends" :key="item.acm">
      <a :href="item.link">
        <img :src="item.image" alt="recommend-item">
        <div class="title">{{item.title}}</div>
      </a>
    </div>
  </div>
</template>

<script>
  export default {
    name: "",
    props: {
      recommends: {
        type: Array,
        default() {
          return [];
        }
      }
    }
  }
</script>

<style scoped>
  .recommend {
    display: flex;
    justify-content: space-evenly;
    margin-top: 10px;
    width: 100%;
    height: 130px;
    border-bottom: 10px solid rgb(238, 238, 238);
  }

  img {
    width: 80px;
    height: 80px;
  }

  .recommend .title {
    margin-top: 5px;
    font-size: 14px;
    text-align: center;
  }
</style>